<table class="w100" style="margin-bottom: 20px;">
	<tr>
		<td>
			<a href="<?=Request::$controller?>messages/" class="awesome light-gray">&larr; to message list</a><br />
		</td>
		<td>
			<? if (isset($messageId)): ?>
				<a href="<?=Request::$controller?>message/<?=$messageId?>" class="awesome green">1. Message editor</a>
			<? else: ?>
				<a href="<?=Request::$controller?>message/" class="awesome green">1. Compose message</a>
			<? endif; ?>
		</td>
		<td>
			<? if (isset($messageId)): ?>
				<a href="<?=Request::$controller?>attachments/<?=$messageId?>/" class="awesome orange">2. Attachments</a>
			<? else: ?>
				<span class="awesome disabled">2. Attachments</span>
			<? endif; ?>
		</td>
		<td>
			<? if (isset($messageId)): ?>
				<a href="<?=Request::$controller?>recipients/<?=$messageId?>/" class="awesome orange">3. Recipient list</a>
			<? else: ?>
				<span class="awesome disabled">3. Recipient list</span>
			<? endif; ?>
		</td>
	</tr>
</table>
<h1>Compose a message</h1>
<?=(isset($form) ? $form : '')?>